package operation;

import book.Book;
import book.BookList;

public class ExitOperation implements IOperation{
    @Override
    public void work(BookList booklist) {
        System.out.println("退出系统");
        int currentSize= booklist.getUsedSize();
        for(int i=0;i< currentSize;i++){
            booklist.setBooks(i,null);
        }
        System.exit(0);
    }
}
